package dao.impl;

import util.JdbcUtil;

import java.sql.Date;
import java.sql.SQLException;

public class UpdateDaoImpl {
    public void updatePhone(String name,int inventory, String type, double price, int id){
        try{
            JdbcUtil.executeUpdate("update t_phone set name=?,inventory=?,type=?,price=? where id=?",name,inventory,type,price,id);
        } catch (SQLException e) {
            throw new RuntimeException(e);
        }
    }
}
